@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    /*主题色*/
    --theme: rgb(237, 242, 250);
    /*背景色*/
    --sub-theme: rgb(255, 255, 255);
    /*边框颜色*/
    --border-color: rgb(220, 220, 220);
    /*artplay视频宽度 默认500占位*/
    --videoWidth: 500px;
    /*loading加载背景色*/
    --loading-bg: rgb(225,230,237);
}

html, body {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    position: relative;

    ::-webkit-scrollbar {
        display: none;
    }
}

.loading {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.loading .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    animation: text-breath 2s ease-in-out infinite;
}

/* 圈圈 */
.loading .content::before {
    content: "";
    width: 70px;
    height: 70px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top-color: #4fc3f7; /* 主色 */
    border-radius: 50%;
    animation: spin 1s linear infinite, glow 1.5s ease-in-out infinite;
}

/* 圈圈旋转 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 圈圈发光 */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px #4fc3f7, 0 0 20px #4fc3f7; }
    50%      { box-shadow: 0 0 25px #4fc3f7, 0 0 50px #4fc3f7; }
}

/* 文字呼吸闪烁 */
@keyframes text-breath {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.1); }
}

* {
    box-sizing: border-box;
}

.message-container {
    position: absolute;
    top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    width: 100%;
}

.message-item {
    display: flex;
    align-items: center;
    min-width: 150px;
    width: 60%;
    padding: 10px 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.message-item.show {
    opacity: 1;
    transform: translateY(0);
}

.message-item.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.message-item .icon {
    margin-right: 8px;
}

.message-item.success {
    background: #4caf50;
}

.message-item.error {
    background: #f44336;
}

.message-item.warning {
    background: #ff9800;
}

.message-item.info {
    background: #2196f3;
}
